import request from '@/utils/request'

export const getUserInfo = (data: any) =>
  request({
    url: '/sys/userinfo',
    method: 'post',
    data
  })

export const login = (data: any) =>
  request({
    url: '/sys/login',
    method: 'post',
    data
  })

export const logout = () =>
  request({
    url: '/sys/logout',
    method: 'post'
  })

export const queryUsers = (params: any) =>  request({
  url: '/sys/users',
  method: 'get',
  params: params
})
